package com.cksecurity.controller.thymeleaf;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.cksecurity.data.User;
import com.cksecurity.service.UserService;

@RestController
@RequestMapping("userManageth")
public class UserManageController {
    
    private Logger logger = LoggerFactory.getLogger(UserManageController.class);
    
    @Autowired
    private UserService userService;
    
    @RequestMapping("userList.th")
    public List<User> listAllUser() {
        return userService.getAllUser();
    }

}
